package com.blic.entity;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 用户表实体类
 * 
 * @author douglas
 * @since 2016-03-25 14:42
 */
@Table(name = "hs_user_info")
public class UserInfoEntity extends CommonBaseEntity {

	private static final long serialVersionUID = 196431448902946336L;

	/**
	 * 用户openid
	 */
	@Column(name = "open_id")
	private String openId;
	/**
	 * 用户名称
	 */
	@Column(name = "user_name")
	private String userName;

	/**
	 * first Name
	 */
	@Column(name = "user_first_name")
	private String userFirstName;

	/**
	 * last Name
	 */
	@Column(name = "user_last_name")
	private String userLastName;

	/**
	 * 用户账户
	 */
	@Column(name = "user_account")
	private String userAcount;

	/**
	 * 用户昵称
	 */
	@Column(name = "user_nickname")
	private String userNickName;

	/**
	 * 用户邮箱
	 */
	@Column(name = "user_email")
	private String userEmail;

	/**
	 * 用户密码
	 */
	@Column(name = "user_password")
	private String userPassWord;

	/**
	 * 用户手机号
	 */
	@Column(name = "user_phone")
	private String userPhone;

	/**
	 * 用户性别
	 */
	@Column(name = "user_sex")
	private String userSex;

	/**
	 * 用户公司
	 */
	@Column(name = "user_employer")
	private String userEmployer;

	/**
	 * 用户职位
	 */
	@Column(name = "user_job")
	private String userJob;

	/**
	 * 用户行业
	 */
	@Column(name = "user_industry")
	private String userIndustry;

	/**
	 * 用户地址
	 */
	@Column(name = "user_location")
	private String userLocation;

	/**
	 * 用户状态
	 */
	@Column(name = "user_status")
	private String userStatus;

	@Column(name = "is_notify")
	private String isNotify;

	/**
	 * @return the openId
	 */
	public String getOpenId() {
		return openId;
	}

	/**
	 * @param openId
	 *            the openId to set
	 */
	public void setOpenId(String openId) {
		this.openId = openId;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the userFirstName
	 */
	public String getUserFirstName() {
		return userFirstName;
	}

	/**
	 * @param userFirstName
	 *            the userFirstName to set
	 */
	public void setUserFirstName(String userFirstName) {
		this.userFirstName = userFirstName;
	}

	/**
	 * @return the userLastName
	 */
	public String getUserLastName() {
		return userLastName;
	}

	/**
	 * @param userLastName
	 *            the userLastName to set
	 */
	public void setUserLastName(String userLastName) {
		this.userLastName = userLastName;
	}

	/**
	 * @return the userAcount
	 */
	public String getUserAcount() {
		return userAcount;
	}

	/**
	 * @param userAcount
	 *            the userAcount to set
	 */
	public void setUserAcount(String userAcount) {
		this.userAcount = userAcount;
	}

	/**
	 * @return the userNickName
	 */
	public String getUserNickName() {
		return userNickName;
	}

	/**
	 * @param userNickName
	 *            the userNickName to set
	 */
	public void setUserNickName(String userNickName) {
		this.userNickName = userNickName;
	}

	/**
	 * @return the userEmail
	 */
	public String getUserEmail() {
		return userEmail;
	}

	/**
	 * @param userEmail
	 *            the userEmail to set
	 */
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	/**
	 * @return the userPassWord
	 */
	public String getUserPassWord() {
		return userPassWord;
	}

	/**
	 * @param userPassWord
	 *            the userPassWord to set
	 */
	public void setUserPassWord(String userPassWord) {
		this.userPassWord = userPassWord;
	}

	/**
	 * @return the userPhone
	 */
	public String getUserPhone() {
		return userPhone;
	}

	/**
	 * @param userPhone
	 *            the userPhone to set
	 */
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	/**
	 * @return the userSex
	 */
	public String getUserSex() {
		return userSex;
	}

	/**
	 * @param userSex
	 *            the userSex to set
	 */
	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	/**
	 * @return the userEmployer
	 */
	public String getUserEmployer() {
		return userEmployer;
	}

	/**
	 * @param userEmployer
	 *            the userEmployer to set
	 */
	public void setUserEmployer(String userEmployer) {
		this.userEmployer = userEmployer;
	}

	/**
	 * @return the userJob
	 */
	public String getUserJob() {
		return userJob;
	}

	/**
	 * @param userJob
	 *            the userJob to set
	 */
	public void setUserJob(String userJob) {
		this.userJob = userJob;
	}

	/**
	 * @return the userIndustry
	 */
	public String getUserIndustry() {
		return userIndustry;
	}

	/**
	 * @param userIndustry
	 *            the userIndustry to set
	 */
	public void setUserIndustry(String userIndustry) {
		this.userIndustry = userIndustry;
	}

	/**
	 * @return the userLocation
	 */
	public String getUserLocation() {
		return userLocation;
	}

	/**
	 * @param userLocation
	 *            the userLocation to set
	 */
	public void setUserLocation(String userLocation) {
		this.userLocation = userLocation;
	}

	/**
	 * @return the userStatus
	 */
	public String getUserStatus() {
		return userStatus;
	}

	/**
	 * @param userStatus
	 *            the userStatus to set
	 */
	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	/**
	 * @return the isNotify
	 */
	public String getIsNotify() {
		return isNotify;
	}

	/**
	 * @param isNotify
	 *            the isNotify to set
	 */
	public void setIsNotify(String isNotify) {
		this.isNotify = isNotify;
	}

	public enum UserStatus {
		// 0失败；2未计算；3正在计算；4已计算；5手工重新计算 6:自动重新计算
		UNACTIVE("1", "未激活"), ACTIVE("2", "已激活");

		private UserStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}

		private String key;

		private String name;

		@Override
		public String toString() {
			return key;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

	}
}
